﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using SMS.Entities;

namespace SMS.Web.Service
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ICustomerMasterService" in both code and config file together.
    [ServiceContract]
    public interface ICustomerMasterService
    {
        [OperationContract]
        int SaveCustomer(string userName, Customer customer, out SMSException serviceError);

        [OperationContract]
        List<Customer> SearchCustomer(string userName, string searchText, out SMSException serviceError);

        [OperationContract]
        List<CustomerTransaction> GetCustomerTransaction(string userName, int customerID, DateTime fromDate, DateTime toDate,out SMSException serviceError);

        [OperationContract]
        int SaveCustomerTransaction(string userName, CustomerTransaction transaction, out SMSException serviceError);

    }
}
